import { createPinia } from 'pinia';
import { useUserStore } from './modules/user';
import piniaPluginPersist from 'pinia-plugin-persist'; //持久化

const pinia = createPinia();

pinia.use(piniaPluginPersist); //持久化插件

export default pinia;

export { useUserStore };